﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CMN.Entity
{
      ///<summary>
    ///Sys_ModuleEntity实体类(功能模块)
    ///</summary>
    [Serializable]
    public partial class Sys_ModuleEntity
    {
        #region "Private Variables"
        private DataTableAction _DataTable_Action;  // 操作方法 Insert:增加 Update:修改 Delete:删除
        private Int32 _ModuleID=0; // 功能模块ID号
        private Int32 _M_ParentID=0; // 所属父级模块ID与ModuleID关联,0为顶级
        private String _M_PageCode=""; // 模块编码Parent为0,则为S00(xx),否则为S00M00(xx)
        private String _M_CName=""; // 模块/栏目名称当ParentID为0为模块名称
        private String _M_Directory=""; // 模块/栏目目录名
        private String _M_OrderLevel=""; // 当前所在排序级别支持双层99级菜单
        private Byte _M_IsSystem=0; // 是否为系统模块1:是0:否如为系统则无法修改
        private Byte _M_Close=0; // 是否关闭1:是0:否
        private String _M_Icon=""; // 模块Icon
        #endregion

        #region "Public Variables"
        ///<summary>
        /// 操作方法 Insert:增加 Update:修改 Delete:删除
        ///</summary>
        public DataTableAction DataTable_Action
        {
            set { this._DataTable_Action = value; }
            get { return this._DataTable_Action; }
        }
        /// <summary>
        /// 功能模块ID号
        /// </summary>
        public Int32  ModuleID
        {
            set { this._ModuleID = value; }
            get { return this._ModuleID; }
        }
        /// <summary>
        /// 所属父级模块ID与ModuleID关联,0为顶级
        /// </summary>
        public Int32  M_ParentID
        {
            set { this._M_ParentID = value; }
            get { return this._M_ParentID; }
        }

        /// <summary>
        /// 父级模块名称
        /// </summary>
        public string M_ParentName { get; set; }
        /// <summary>
        /// 模块编码Parent为0,则为S00(xx),否则为S00M00(xx)
        /// </summary>
        public String  M_PageCode
        {
            set { this._M_PageCode = value; }
            get { return this._M_PageCode; }
        }
        /// <summary>
        /// 模块/栏目名称当ParentID为0为模块名称
        /// </summary>
        public String  M_CName
        {
            set { this._M_CName = value; }
            get { return this._M_CName; }
        }
        /// <summary>
        /// 模块/栏目目录名
        /// </summary>
        public String  M_Directory
        {
            set { this._M_Directory = value; }
            get { return this._M_Directory; }
        }
        /// <summary>
        /// 当前所在排序级别支持双层99级菜单
        /// </summary>
        public String  M_OrderLevel
        {
            set { this._M_OrderLevel = value; }
            get { return this._M_OrderLevel; }
        }
        /// <summary>
        /// 是否为系统模块1:是0:否如为系统则无法修改
        /// </summary>
        public Byte  M_IsSystem
        {
            set { this._M_IsSystem = value; }
            get { return this._M_IsSystem; }
        }
        /// <summary>
        /// 是否关闭1:是0:否
        /// </summary>
        public Byte  M_Close
        {
            set { this._M_Close = value; }
            get { return this._M_Close; }
        }
        /// <summary>
        /// 模块Icon
        /// </summary>
        public String  M_Icon
        {
            set { this._M_Icon = value; }
            get { return this._M_Icon; }
        }
        #endregion
    }
}
